package com.webcat.exception;

import com.alibaba.fastjson.JSONObject;
import com.webcat.entity.Response;
import com.webcat.enums.ResultEnum;
import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;
import jakarta.validation.ValidationException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * @author wangjun
 * @date 18-2-9 下午4:01
 * @description 统一异常处理
 * @modified by
 */

@RestControllerAdvice
@Slf4j
public class TestControllerAdvice {



    /*@ExceptionHandler(value = Exception.class)
    public Object exceptionHandler(Exception ex) {
        return EX_MSG_LEN;
    }*/
}
